package com.atguigu.exam.config;

import com.atguigu.exam.properties.MinioProperties;
import io.minio.MinioClient;

//@Configuration

public class MinioConfiguration {
    //    @Autowired
    private MinioProperties minioProperties;

    //    @Bean
    public MinioClient getMinioClient() {
        return MinioClient.builder().endpoint(minioProperties.getEndpoint())
                .credentials(minioProperties.getAccessKey(), minioProperties.getSecretKey()).build();
    }
}
